package com.itheima.sh.clients;

import com.itheima.sh.clients.fullback.UserFeignApiFullBack;
import com.itheima.sh.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "user-service",fallback = UserFeignApiFullBack.class)
public interface UserFeignApi {
    @GetMapping("/user/{id}")
     User queryById(@PathVariable("id") String username);
}
